package com.huawei.appgallery.forum.cards.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.huawei.appgallery.forum.base.card.ForumNode;
import com.huawei.appgallery.forum.cards.card.ForumFollowCard;
import o.bsy.b;
import o.bsy.c;
import o.cih;

public class ForumFollowNode extends ForumNode {
    public ForumFollowNode(Context context) {
        super(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutInflater from = LayoutInflater.from(this.ॱ);
        LinearLayout linearLayout = (LinearLayout) from.inflate(b.ʻॱ, null);
        LinearLayout linearLayout2 = (LinearLayout) linearLayout.findViewById(c.ᐝ);
        int ˏ = ˏ();
        for (int i = 0; i < ˏ; i++) {
            View inflate = from.inflate(b.ॱˎ, null);
            cih ˎ = ˎ(this.ॱ);
            ˎ.ˏ(inflate);
            ˊ(ˎ);
            linearLayout2.addView(inflate);
        }
        viewGroup.addView(linearLayout);
        return true;
    }

    protected ForumFollowCard ˎ(Context context) {
        return new ForumFollowCard(context);
    }
}
